package it.eng.area118.mdocommon;

/**
 * 
 * @author Luigi Bifulco Callback interface for onSuccess/onFailure/onCancelled
 *         events control
 * 
 * @param <E>
 *            the result type
 */
public interface Callback<E> {

	public void onBeforeExecute();

	public void onSuccess(E result);

	public void onFailure(Throwable e);

	public void onCancelled();

}
